@extends('backend.layouts.app')

@section('content')
    <div class="card">
        <div class="card-header">
            <h5 class="mb-0 h6">{{translate('Bonus Pool Logs')}}</h5>
        </div>
        <div class="card-body">
            <table class="table aiz-table mb-0">
                <thead>
                <tr>
                    <th>#</th>
                    <th data-breakpoints="lg">{{ translate('Month')}}</th>
                    <th data-breakpoints="lg">{{ translate('Order Id')}}</th>
                    <th>{{ translate('Amount')}}</th>
                    <th>{{ translate('Buy User')}}</th>
                    <th data-breakpoints="lg">{{ translate('Date') }}</th>
                </thead>
                <tbody>
                @foreach($record as $key => $log)

                        <tr>
                            <td>{{ ($key+1) + ($record->currentPage() - 1)*$record->perPage() }}</td>
                            <td>{{ $log->stage }}</td>
                            <td>{{ $log->order_sn }}</td>
                            <td>{{ $log->enter_amount }}</td>
                            <td>{{ $log->real_name }}</td>
                            <td>{{ $log->created_at->format('Y-m-d H:i') }} </td>
                        </tr>

                @endforeach
                </tbody>
            </table>
            <div class="aiz-pagination">
                {{ $record->links() }}
            </div>
        </div>
    </div>
@endsection
